home *** CD-ROM | disk | FTP | other *** search
- PRINT "Flying balls"
- PRINT "by John Doe"
-
- REM Make sure that your Extras diskette is named Extras
- REM or the program will not work
- REM p$ looks for the disk named Extras, the drawer named
- REM BasicDemos, then the file named ball, which is a graphic
-
- REM HiSoft BASIC version has a WHILE loop at the end
- REM instead of a FOR loop which is too fast!
-
- REM $option b
-
- p$ = "Extras:BAsicDemos/Ball"
- OPEN p$ FOR INPUT AS 1
- OBJECT.SHAPE 1,INPUT$(LOF(1),1)
- CLOSE 1
-
- Start:
- FOR x= 2 TO 5
- OBJECT.SHAPE x,1
- OBJECT.X x,320
- OBJECT.Y x,60
- OBJECT.HIT x,0,0
- OBJECT.AX x, ((x=2 OR x=4) +.5) *6
- OBJECT.AY x, ((x>3)+.5)*1.5
- NEXT x
-
- FOR x=2 TO 5
- OBJECT.ON x : OBJECT.START
- NEXT x
-
- REM Dummy loop so that balls have time to move
- REM Break out of this using CTRL C
-
- while 1
- wend
-
-
-